package model

import (
	"gin-vue-admin/global"
	uuid "github.com/satori/go.uuid"
)

type SysOrder struct {
	global.GVA_MODEL
	UUID      uuid.UUID `json:"uuid" gorm:"comment:订单唯一编号"`
	UserName  string    `json:"user_name" gorm:"comment:用户名"`
	CommodityId string `json:"commodityId" gorm:"comment:所兑换商品编号"`
	Commodity SysCommodity `json:"commodity" gorm:"ForeignKey:CommodityId;AssociationForeignKey:CommodityId;comment:'用户商品'"`
}
